package com.sc.nft.entity.vo.secondEquityProp;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class RealAmountVO {

    @ApiModelProperty("实际支付金额")
    private String realAmount ="0";

    @ApiModelProperty("权益道具id")
    private Long equityPropsId;

    @ApiModelProperty("寄售数量")
    private Integer consignCount;

    @ApiModelProperty("手续费")
    private String charge;

    @ApiModelProperty("总手续费")
    private String sumCharge;

    @ApiModelProperty("名称")
    private String firstTitle;

    @ApiModelProperty("过期时间戳")
    private Long expirationTimeStamp;

    @ApiModelProperty("当前时间戳")
    private Long nowTimeStamp;

    public void setRealAmount(BigDecimal realAmount) {
        this.realAmount = realAmount.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }

    public void setCharge(BigDecimal charge) {
        this.charge = charge.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }
    public void setSumCharge(BigDecimal sumCharge) {
        this.sumCharge = sumCharge.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }
}
